ftoc to evaluate the integral